package com.example.demo.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import lombok.Data;

import java.util.Date;

@Data
@ContentRowHeight(100) // 设置行高
public class BlobVo {
    @ExcelProperty("图片ID")
    @ColumnWidth(15)
    private Integer imageId;

    @ExcelIgnore
    private String image; // Base64 字符串

    @ExcelProperty("图片类型")
    @ColumnWidth(20)
    private String type;

    @ExcelProperty("上传时间")
    @ColumnWidth(25)
    private Date uploadTime;

    @ExcelProperty(value = "图片预览")
    @ColumnWidth(50) // 设置图片列宽度
    private byte[] imageData; // 图片字节数据
}